package com.example.rent.controller;


import com.example.rent.service.HouseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author wanted
 * @since 2021-12-02
 */
@RestController
@RequestMapping("/house")
public class HouseController {
    @Autowired
    HouseService houseService;
        @RequestMapping("/list")
    public String list(){
            return this.houseService.list().toString();
        }
}

